package cn.edu.nuc.ssm.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Created by Administrator on 2017/4/19.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Result<T> {

    private String status;
    private T data;


    public Result() {
    }

    public Result(String status, T data) {
        this.status = status;
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "status='" + status + '\'' +
                ", data=" + data +
                '}';
    }
}
